/*
 * @Author: your name
 * @Date: 2021-08-02 00:14:12
 * @LastEditTime: 2021-11-19 22:55:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \aircityinit\src\main.js
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
// import './plugins/element.js'
import './plugins/element.js';
import "element-ui/lib/theme-chalk/index.css";

import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
// 引入echarts
import * as echarts from "echarts";

import "animate.css/source/animate.css"; //animate.css
// //消息提示框
// Vue.prototype.$message=Message;
// Vue.prototype.$confirm=MessageBox.confirm;
// Vue.prototype.$Loading=Loading;


// import 'echarts-liquidfill'
Vue.prototype.$echarts = echarts;
// 引入echarts
// import * as echarts from "echarts";
// import "echarts-liquidfill";
// Vue.prototype.$echarts = echarts;
// import "echarts-gl";
Vue.use(Antd);
Vue.use(ElementUI);
// import Highcharts from 'highcharts/highstock';
import Highcharts from "highcharts";
// import VueHighCharts from 'vue-Highcharts'
import Highcharts3d from "highcharts/highcharts-3d";
// import HighchartsMore from 'highcharts/highcharts-more';
// import HighchartsDrilldown from 'highcharts/modules/drilldown';
Highcharts3d(Highcharts);
// import Highcharts3D from 'highcharts/highcharts-3d';
// HighchartsMore(Highcharts)
// HighchartsDrilldown(Highcharts);
// Highcharts3D(Highcharts);

import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/swiper-bundle.css";
Vue.use(VueAwesomeSwiper);

import "qweather-icons/font/qweather-icons.css";
// VideoPlayer
import VideoPlayer from "vue-video-player";
require("video.js/dist/video-js.css");
require("vue-video-player/src/custom-theme.css");
Vue.use(VideoPlayer);
const hls = require("videojs-contrib-hls");
Vue.use(hls);

// 全局样式
import "./assets/css/global.scss";
import "./assets/css/rest.css";
import "animate.css/source/animate.css"; //animate.css
Vue.config.productionTip = false;
// window.location.origin兼容问题
if (!window.location.origin) {
  window.location.origin =
    window.location.protocol +
    "//" +
    window.location.hostname +
    (window.location.port ? ":" + window.location.port : "");
}
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
